
<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title></title>
    <meta name="keywords" content="">
    <meta name="description" content="">

   <link rel="shortcut icon" href="__STATIC__/layout/favicon.ico">
     <link href="__STATIC__/layout/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="__STATIC__/layout/css/font-awesome.css?v=4.4.0" rel="stylesheet">
     <!-- jqgrid-->
    <link href="__STATIC__/layout/css/animate.css" rel="stylesheet">
    <link href="__STATIC__/layout/css/style.css?v=4.1.0" rel="stylesheet">
    <link href="__STATIC__/layout/css/plugins/sweetalert/sweetalert.css" rel="stylesheet">
    <link href="__STATIC__/layout/css/gyq.css" rel="stylesheet">
    <link rel="stylesheet" href="__STATIC__/layout/css/demo.css" type="text/css">
    <style>
      #dayT tbody tr:nth-child(odd){background:#f7f3f7 }
    </style>
</head>

<body style="color:#333;padding:3px;">
    <!-- 标题 -->
    <div class="page-heade">
        <h2 class="title_color text-center">{$nian}年分区日常费用报表(单位：元)</h2>
    </div>
    <!-- 标题 -->
   <form action="" class="form-inline" method="get" id="f1">
    <table class="table table-bordered bud_hei" style="margin:0">
        <tr>
          <td>
              <span class="lr_5"></span>
         <select name="cid" id="cid" class="select form-control" >
           {volist name="cainian" id="c"}
            <option value="{$c.id}" {if $c.id==$cid} selected {/if}>{$c.title}</option>
           {/volist}
        </select><span class="lr_5"></span><button class="btn-info btn" type="button" onclick="query()">查询</button>
        <span class="lr_5"></span><a href="javascript:;" onclick="dc({$cid})"  class="btn btn-info">导出Excel</a>
          </td>
        </tr>
    </table>
	 <div>	 
      <table class="tab-content table-bordered text-right table-hover table bud_hei" border="1" style="margin-bottom:1px" id="dayT">
      	 <tr class="info">
			<th class="text-center">分区名</th>
			{volist name="kaohe2" id="kao"}
      <th class="text-center">{$kao.title}</th>
      {/volist}
			<th class="text-center">平均</th>
			<th class="text-center">小计</th>
      	 </tr>
        <tbody style="border:0">
        {volist name="fenqu" id="f"}
          <tr>
           <td class="text-center">{$f.title}</td>
           {volist name="$f.jine" id="j" key="k"}
            <td class="ObjectNum jisuan{$k}">{$j}</td>
           {/volist}
           <td class="ObjectNum">{$f.avg}</td>
           <td class="ObjectNum warning">{$f.zong}</td>
          </tr>
        {/volist}
          
        </tbody>
     	<tfoot>
			<tr class="trTotal">
				<td class="text-center">合计</td>
				 
          		{volist name="kaohe2" id="kao"}
              <th class="ObjectNum">{$kao.jine}</th>
              {/volist}
          		 <td class="ObjectNum">{$avg}</td>
          		 <td class="ObjectNum">{$zong}</td>
			</tr>
     	</tfoot>
      </table>
     </div>
</form>
   
    <!-- 全局js -->
    <script src="__STATIC__/layout/js/jquery.min.js?v=2.1.4"></script>
    <script src="__STATIC__/layout/js/bootstrap.min.js?v=3.3.6"></script>
    <!-- <script src="js/plugins/metisMenu/jquery.metisMenu.js"></script> -->
    <script src="__STATIC__/layout/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
     <script src="__STATIC__/layout/js/plugins/layer/laydate/laydate.js"></script>
      <script src="__STATIC__/layout/js/common.js"></script>
    <script>
    function dc(cid){
      window.open("{:url('fenqurcdc')}?cid="+cid)
    }
      function query(){
        document.getElementById("f1").submit()
      }
       $(document).ready(function(){
            var $ObjectNum =$(".ObjectNum");
               toNum($ObjectNum);

       
         });  
    </script>
</body>

</html>
